timeunits
Returns a string representation of the time unit index.
Contents
Syntax
U = timeunits(T)
Description
timeunits(T) returns a string corresponding to the time unit index provided after incrementing the index by 1.
This function only applies to PicoScope 2000 Series devices using the ps2000 driver API functions.
Example
T = 2; % nanoseconds
U = timeunits(T)
U =
'ns'
Input Arguments
- T - the time unit (a scalar value).
This should be one of the following values:
- -1 (ADC counts)
- 0 (femtoseconds)
- 1 (picoseconds)
- 2 (nanoseconds)
- 3 (microseconds)
- 4 (milliseconds)
- 5 (seconds)
Output Arguments
- U - a string corresponding to the time unit index selected.
Note: If T is set to -1, U will be returned as 'ADC'.
Copyright: © 2015-2019 Pico Technology Ltd. All rights reserved.